<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>功德</title>
</head>
<body>
<a href="addBrand.html"><input type="button" value="新增"></a><br>
<hr>
<div id="app">
    <p>功德{{number}}</p>
    <button id="number1" @click="" v-model="number">功德+1</button>
    <button id="number2" @click="">功德-1</button>

</div>


<script src="js/axios-0.18.0.js"></script>
<script src="js/vue.js"></script>

<script>

    new Vue({
        el: "#app",
        data() {
            return {
                number
            }
        },
        methods(){
            add():{
            number++
            }
        }

    })

</script>
</body>
</html>